package cn.duli.myvideo.mapper;

import cn.duli.myvideo.pojo.CollectTv;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectTvMapper {


    Page<CollectTv> findAll();

    Integer findCountByTvId(@Param("tvId") Integer tvId);

    List<CollectTv> findByUserId(@Param("uId") Integer uId);

    List<CollectTv> findByTvId(@Param("tvId") Integer tvId);

    void save(CollectTv collectTv);

    void deleteById(@Param("ctvId") Integer ctvId);
}